<include file="application/walletyhbbadmin/view/public/left.html"/>
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">物流管理<b>></b><strong>配送物流表</strong> </div>
     <div class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
         <h3><a href="{:U('Wuliu/addWuliu')}" class="actionBtn add">添加物流</a>物流管理</h3>
         <form action="{:U('Wuliu/index')}" method="post">
             &nbsp;快递名称: &nbsp;<input class="inpMain" placeholder="快递名称" name="shipping_name" value=""  type="text">
             <input name="submit" class="btnGray" type="submit" value="搜索" />
         </form>
         <br>
     <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
    <tr>
        <th align="center">ID</th>
        <th align="center">快递代号</th>
        <th align="center">快递名称</th>
        <th align="center">描述</th>
        <th align="center">保险</th>
        <th align="center">状态</th>
        <th align="center">操作</th>
    </tr>
    <volist name="wl" id="vs" empty="$empty">
    <tr>
        <td align="center">{$vs.shipping_id}</td>
        <td align="center">{$vs.shipping_code}</td>
        <td align="center">{$vs.shipping_name}</td>
        <td align="center">{$vs.shipping_desc}</td>
        <td align="center">{$vs.insure}</td>
        <td align="center">
            <eq name="vs.enabled" value="1">使用
                <span style="background-color:#0066ff;border-radius:8px">&nbsp;<a href="{:U('Wuliu/updateStatus',array('shipping_id'=>$vs.shipping_id))}" style="color:#fff">关闭</a>&nbsp;</span>
            </eq>
            <eq name="vs.enabled" value="0">关闭
                <span style="background-color:#0066ff;border-radius:8px">&nbsp;<a href="{:U('Wuliu/updateStatus',array('shipping_id'=>$vs.shipping_id))}" style="color:#fff">使用</a>&nbsp;</span>
            </eq>
        </td>
        <td align="center">
        <a href="JavaScript:void(0);" onclick="gg_del({$vs.shipping_id})" class="del" did="{$vs.shipping_id}">删除</a>&nbsp;&nbsp;<a class="link-update" href="{:U('Wuliu/edit',array('shipping_id'=>$vs['shipping_id']))}">修改</a>
        </td>
    </tr>
    </volist>
    </table>
</div>
     <div><center>{$page}</center></div>
</div>
<div class="clear"></div>
<include file="application/walletyhbbadmin/view/public/foot.html"/><!-- dcFooter 结束 -->
<div class="clear"></div>
<script>
    function gg_del(id){
        layer.confirm('是否确认删除?',function(){
            $.post("{:U('Wuliu/delWuliu')}",{shipping_id:id},function(data){
                layer.msg(data.info);
                if(data.status==1){
                    setTimeout(function(){
                        window.location.reload();
                    },1000)
                }
            })
        })
    }
</script>

</body>
</html>